package org.opens.apache.http;

import com.alibaba.fastjson.JSONObject;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClientBuilder;

import java.util.Map;

public class HttpUtil2 {

    private static final Integer DEFAULT_SOCKET_TIMEOUT = 1;
    private static final Integer DEFAULT_CONNECT_TIMEOUT = 1;

    public static JSONObject postOfRequestBody(String url, Map<String, Object> params) {
        try (
                CloseableHttpClient httpClient = HttpClientBuilder.create().build();

                ) {

        } catch (Exception e) {

        }
        return null;
    }

    public static JSONObject postOfRequestParam(String url, Map<String, Object> params) {
        return null;
    }

}
